home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-04-14 | 1.7 KB | 66 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="6"
- "COUNT"="2"
- "UIPATH 1"="Program Options\Built in Windows Apps\Windows Media Player"
- "UIPATH 2"="Internet\Windows Media Player"
- "NAME"="Advanced Options"
- "LANGUAGE"="VBScript"
- "VERSION"="1.15"
- "TEXT 1"="Allow automatic Codec downloads"
- "TEXT 2"="Enable DVD functionality"
- "DESCRIPTION 1"="Some options for WMP."
- "DESCRIPTION 2"="NOTE: "DVD functionality" is only available with WMP 6.x on Windows 95 or Windows 98 and with WMP 8 on WinXP!"
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
-
- sV1="HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\NoCodecDownload" ' DW
- sV2="HKCU\Software\Microsoft\MediaPlayer\Player\Settings\EnableDVDUI" 'STR - yes/no
-
- 'Called when the Plugin is started
- SUB Plugin_Initialize
- i=RegReadValue(sV1)
- if i<>1 then SetUIElement 1,true
-
- i=RegReadValue(sV2)
- if i="yes" then SetUIElement 2,true
- END SUB
-
- 'Called when the Plugin should validate the Data the user has entered
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
-
-
- 'Called when the Plugin should apply the changes
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- Call Wrt(1,sV1)
-
- if GetUIElement(2)=true then
- Call RegWriteValue(sV2,"yes",1)
- else
- Call RegWriteValue(sV2,"no",1)
- end if
- END SUB
-
- Sub Wrt(ITM,VAL)
- b=GetUIElement(ITM)
- if b=false then
- Call RegWriteValue(VAL,1,2)
- else
- s=RegReadValue(VAL)
- if IsEmpty(s)=false then
- Call RegDeleteValue(VAL)
- end if
- end if
- end sub
-
-
- 'Called when the Plugin is about to be removed from memory
- SUB Plugin_Terminate
- END SUB
-
-